package demo.standard;

public abstract class AbstractTemplate {

    void doBeforeExec() {
        System.out.println("执行前处理");
    }

    void doAfterExec() {
        System.out.println("执行后处理\n");
    }

    public void useForClient() {
        doBeforeExec();
        exec();
        doAfterExec();
    }

    public abstract void exec();
}
